<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport"
			content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />


		<title>XXX平台商家端</title>


		<!--内容样式-->
		<link rel="stylesheet" href="__PUBLIC__/Home/supplier/css/style.css" />
		<link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />




	</head>

	<body>


		<div class="main">


			<include file="head" />


			<!--  左侧导航  -->
			<div class="nav">
				<div class="na-title">
					<img src="__PUBLIC__/Home/supplier/images/icon_ml.png" />
					<div class="nat-mc">目录</div>
					<div class="divclear"></div>
				</div>
				<div class="na-box">
					<a href="{:U('book_index')}" <if condition="$cur eq '书籍管理'">class="nab-btn cur"<else/>class="nab-btn"</if>>书籍列表</a>

					<!-- <a href="{:U('book_spec')}" <if condition="$cur eq '书籍规格'">class="nab-btn cur"<else/>class="nab-btn"</if>>书籍规格</a> -->
				</div>
			</div>


			<!--  右侧内容  -->
			<div class="content">

				<div class="ct-title">
					<div class="ctt-bt">全部书籍</div>
				</div>

				<div class="ct-cx">
<!-- 					<label>
						<input type="checkbox">
						<span>全选</span>
						<div class="divclear"></div>
					</label> -->
<!-- 					<div class="ctc-pl" onClick="JavaScript:">批量上架</div>
					<div class="ctc-pl" onClick="JavaScript:">批量下架</div> -->
					<!-- <div class="ctc-line">|</div> -->
<!-- 					<select>
						<option>书籍名称</option>
						<option>书籍自编码</option>
					</select> -->
					<input type="text" placeholder="输入相关内容" class="ctc-wb" name="name" value="{$name}">
					<button class="ctc-btn1" id="cx">查询</button>
					<a class="ctc-btn2" href="{:U('book_add')}">新增书籍</a>
					<div class="divclear"></div>
				</div>


				<div class="ct-table">
					<table border="0" width="100%">
						<tbody>
							<tr>
								<!-- <th scope="col" width="5%" style="border-top-left-radius: 6px;">选择</th> -->
								<!-- <th scope="col" width="8%">书籍编号</th> -->
								<th scope="col" width="12%">封面图</th>
								<th scope="col" width="25%">书籍名称</th>
								<th scope="col" width="10%">出版社</th>
								<th scope="col" width="10%">作者</th>
								<th scope="col" width="8%">单价</th>
								<th scope="col" width="14%" style="border-top-right-radius: 6px;">操作</th>
							</tr>

							<volist name="list" id="item">
								<tr>
									<!-- <td><input type="checkbox" class=""></td> -->
									<!-- <td>iso00001</td> -->
									<td>
										<div class="ctt-fmt">
											<img src="{$item['img']}" />
										</div>
									</td>
									<td>{$item['name']}</td>
									<td>{$item['press']}</td>
									<td>{$item['author']}</td>
									<td>{$item['min_price']}元</td>
									<td><if condition="$item['is_recommend'] eq 1"><else /><a href="{:U('Supplier/book_edit',array('id'=>$item['id']))}">编辑</a></if><a href="{:U('Supplier/book_del',array('id'=>$item['id']))}">删除</a></td>
								</tr>
							</volist>


						</tbody>
					</table>
				</div>


			<div class="page">
	            {$_page}
	        </div>


			</div>


		</div>


	</body>
</html>
<script src="/Public/static/jquery-2.0.3.min.js"></script>
<script type="text/javascript">
	    $("#cx").click(function(){
	        var name = $("input[name='name']").val();
	        var url="{:U('Home/Supplier/book_index')}";
	        url=url+"&name="+name;
	        location.href=url;
	    })


</script>